package com.anke.entity;

import java.io.Serializable;

/**
 * 封装返回结果
 */
public class Result implements Serializable {
    // 执行的结果 true为成功，false为失败
    private boolean flag;
    //返回结果信息，用于页面提示
    private String massage;
    //返回数据
    private Object data;

    public Result() {
    }

    public Result(boolean flag, String massage) {
        this.flag = flag;
        this.massage = massage;
    }

    public Result(boolean flag, String massage, Object data) {
        this.flag = flag;
        this.massage = massage;
        this.data = data;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMassage() {
        return massage;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
